<!DOCTYPE html>
<html lang="en">
<head>
	<title>密码修改</title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="viewport" content="initial-scale=1.0, minimum-scale=1.0, maximum-scale=2.0, user-scalable=no, width=device-width">
	<meta name="format-detection" content="telephone=no">
	<link rel="stylesheet" type="text/css" href="__STATIC__/yt_css/swiper.css">
	<link rel="stylesheet" type="text/css" href="__STATIC__/yt_css/style.css">
	<link rel="stylesheet" type="text/css" href="__STATIC__/yt_css/ipad.css">
	<link rel="stylesheet" type="text/css" href="__STATIC__/yt_css/iphone.css">
	<script type="text/javascript" src="__STATIC__/yt_js/jquery-1.9.0.min.js"></script>
</head>
<body class="body">
<div class="container">
	<include file="user/new_header" w="w1224"/>
	<div class="fexiao_content">
		<div class="left">
			<h2>分销中心</h2>
			<include file="user/new_menu" w="w1224"/>
		</div>
		<div class="right xgmm_right">
			<div class="xgmm">
				<form action="" method="post" id="pwdform">
					<h3><img src="images/t.png" alt=""> <font>您正在进行</font> 密码修改</h3>
					<div>
                        <span>原密码</span>
                        <input class="name_zjxs" type="password" name="old_password" id="old_password" value="" >
                    </div>
					<div>
                        <span>新密码</span>
                        <input class="name_zjxs" type="password" name="new_password" id="new_password" value="" placeholder="6-16位字母、数字或符号组合">
                    </div>
					<div>
                        <span>确认新密码</span>
                        <input class="name_zjxs" type="password" name="confirm_password" id="confirm_password" value=""placeholder="6-16位字母、数字或符号组合">
                    </div>
                    <button onclick="checkSubmit()">保存</button>
				</form>

			</div>
		</div>
		<div class="clear"></div>
	</div>
	<div class="zhanwei"></div>
	<div class="footer">
		<include file="public/new_footer" w="w1224"/>
	</div>
</div>

<script type="text/javascript">

    function checkSubmit(){
        var new_password = $('#new_password').val();
        var confirm_password = $('#confirm_password').val();
        if(new_password == ''){
            layer.alert('新登录密码不能为空', {icon: 2});
            return false;
        }
        if(new_password.length<6 || new_password.length>18){
            layer.alert('密码长度不符合规范', {icon: 2});
            return false;
        }
        if(new_password != confirm_password){
            layer.alert('两次密码不一致', {icon: 2});
            return false;
        }
        $('#pwdform').submit();
    }
</script>
</body>

</html>